<f:view
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:itdep="http://itdep.bsuir.by/jsf"
		>
	<ui:decorate template="/facelets/template/mainTemplate.xhtml">
		<f:loadBundle basename="bundle.dictionary" var="dictionaryBundle"/>
		<ui:define name="title">
			<h:outputText value="#{title}"/>
		</ui:define>
		<ui:define name="center">
			<ui:decorate template="/facelets/template/centerTemplate.xhtml">
				<ui:define name="content">
					<ui:decorate template="/facelets/template/tableTemplate.xhtml">

						<ui:define name="editPanelContext">
							<h:panelGrid columns="2">
								<h:outputText value="#{dictionaryBundle.dictionaryCode}"
											  rendered="#{not actionBean.record.new}"/>
								<h:outputText value="#{actionBean.record.code}"
											  rendered="#{not actionBean.record.new}"/>

								<h:outputText value="#{dictionaryBundle.dictionaryDescription}"/>
								<h:inputText value="#{actionBean.record.translations.description.value}"/>
							</h:panelGrid>
						</ui:define>

						<ui:define name="tableContext">
							<rich:column width="1%">
								<f:facet name="header">
									<h:outputText value="#{dictionaryBundle.id}"/>
								</f:facet>
								<h:outputText value="#{record.id}"/>
							</rich:column>
							<rich:column width="31%">
								<f:facet name="header">
									<h:outputText value="#{dictionaryBundle.dictionaryCode}"/>
								</f:facet>
								<h:outputText value="#{record.code}"/>
							</rich:column>
							<rich:column>
								<f:facet name="header">
									<h:outputText value="#{dictionaryBundle.dictionaryDescription}"/>
								</f:facet>
								<ui:insert name="debug">
									<itdep:entityOutput value="#{record}" format="%s" parameters="description"/>
								</ui:insert>
							</rich:column>
						</ui:define>

					</ui:decorate>
				</ui:define>
			</ui:decorate>
		</ui:define>
	</ui:decorate>
</f:view>